﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public  partial class qgzx_cwy_group
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_cwy_group ToPOCO()
        {
            qgzx_cwy_group poco = new qgzx_cwy_group()
            {
                GroupID = this.GroupID,
                FleetID = this.FleetID,
                Leader = this.Leader,
                Headman = this.Headman,
                HeadmanId = this.HeadmanId,
                Volunteers = this.Volunteers,
                AdvancedDeeds = this.AdvancedDeeds,
                WorkDays = this.WorkDays,
                VocationDays = this.VocationDays,
                TimeSpan = this.TimeSpan,
                IsExcellent = this.IsExcellent
            };
            return poco;
        }
        #endregion

        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.CwyGroup ToViewModel()
        {
            ViewModel.CwyGroup poco = new ViewModel.CwyGroup()
            {
                GroupID = this.GroupID,
                FleetID = this.FleetID,
                Leader = this.Leader,
                Headman = this.Headman,
                HeadmanId = this.HeadmanId,
                Volunteers = this.Volunteers,
                AdvancedDeeds = this.AdvancedDeeds,
                WorkDays = this.WorkDays,
                VocationDays = this.VocationDays,
                TimeSpan = this.TimeSpan,
                IsExcellent = this.IsExcellent
            };
            return poco;
        }
        #endregion
    }
}
